Result: fail
Detail | Value |
---|---|
Returncode | 1 |
Time | 0:00:00.222469 |
Stdout |
Output v.e.a element 0: expected 1, got -858993460 Output v.e.b element 0: expected 2.000000, got -107374176.000000 Output v.f.c element 0: expected 3.000000, got -107374176.000000 Output v.f.d element 0: expected 4, got -858993460 Vertex shader: #version 150 #define DECLARE_VARYING(DIR, TYPE, NAME) flat DIR TYPE NAME #define VARYING(NAME) NAME struct S { int a; float b; }; struct T { float c; int d; }; struct U { S e; T f; }; in vec4 pos; DECLARE_VARYING(out, U, v); void main() { gl_Position = pos; VARYING(v).e.a = 1; VARYING(v).e.b = 2.0; VARYING(v).f.c = 3.0; VARYING(v).f.d = 4; } Fragment shader: #version 150 #define DECLARE_VARYING(DIR, TYPE, NAME) flat DIR TYPE NAME #define VARYING(NAME) NAME struct S { int a; float b; }; struct T { float c; int d; }; struct U { S e; T f; }; DECLARE_VARYING(in, U, v); out vec4 color; void main() { bool pass = true; if (VARYING(v).e.a != 1) pass = false; if (VARYING(v).e.b != 2.0) pass = false; if (VARYING(v).f.c != 3.0) pass = false; if (VARYING(v).f.d != 4) pass = false; if (pass) color = vec4(0.0, 1.0, 0.0, 1.0); else color = vec4(1.0, 0.0, 0.0, 1.0); } |
Stderr |
SWR detected AVX2 vert shader 0x7f82e8b31000 frag shader 0x7f82e8b2f000 so shader 0x7f82e8b2d000 fetch shader 0x7f82e8b2b000 SWR destroy screen! |
Environment |
PIGLIT_SOURCE_DIR="/home/ilia/src/piglit" PIGLIT_PLATFORM="mixed_glx_egl" |
Command | /home/ilia/src/piglit/bin/ext_transform_feedback-structs struct-struct run-no-fs -auto -fbo |
dmesg |